package config

type DM struct {
	GeneralDB `yaml:",inline" mapstructure:",squash"`
}

func (m *DM) Dsn() string {
	return "dm://" + m.Username + ":" + m.Password + "@" + m.Path + ":" + m.Port + "/" + m.Dbname + "?" + m.Config

}

func (m *DM) GetLogMode() string {
	return m.LogMode
}
